﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace DotNetCoreStudy.Page.Models
{
    /// <summary>
    /// 员工
    /// </summary>
    public class Employee
    {
        public int Id { get; set; }
        public int DepartmentId { get; set; }

        public string FirstName { get; set; }

        public string LastName { get; set; }
        
        [Display(Name = "性别")]
        public EnumGender Gender { get; set; }

        /// <summary>
        /// 是否被解雇
        /// </summary>
        public bool Fired { get; set; }
    }

    public enum EnumGender
    {
        /// <summary>
        /// 女
        /// </summary>
            Female = 0,

        /// <summary>
        /// 男
        /// </summary>
        Male = 1
    }
}
